import 'dart:async';

import 'package:flutter/material.dart';

class AppBarDemoPage extends StatelessWidget {
  const AppBarDemoPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("AppBarDemoPage"),
        centerTitle: true,
        leading: IconButton(
          onPressed: () {
            print("hello");
          },
          icon: Icon(
            Icons.home,
          ),
        ),
        backgroundColor: Colors.red,
        actions: [
          IconButton(
            icon: Icon(Icons.menu),
            onPressed: () {
              print("menu");
            },
          ),
          IconButton(
            icon: Icon(Icons.settings),
            onPressed: () {
              print("setting");
            },
          ),
        ],
      ),
      body: Text("appbar"),
    );
  }
}
